package com.steward.dao.customer;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.steward.model.customer.Customer;

@Repository
public interface CustomerMapper {
	int deleteByPrimaryKey(String id);

	int insert(Customer record);

	Customer selectByPrimaryKey(String id);

	int updateByPrimaryKeySelective(Customer record);
	
	
	
	/**
	 * 根据手机号查询所有关联的customer信息
	 * @param telephone
	 * @return
	 */
	List<Customer> selectCustomersByPhone(String telephone);

}